package com.xja.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author 翁
 * @date 2022/4/8 15:38
 */
public class PageBean<T> implements Serializable {
    private Integer npage;
    private Integer pageCount;
    private List<T> contentList;
    private Integer nextPage;
    private Integer backPage;
    private Long totals;

    public PageBean() {
    }

    public PageBean(Integer npage, Integer pageCount, List<T> contentList, Integer nextPage, Integer backPage, Long totals) {
        this.npage = npage;
        this.pageCount = pageCount;
        this.contentList = contentList;
        this.nextPage = nextPage;
        this.backPage = backPage;
        this.totals = totals;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "npage=" + npage +
                ", pageCont=" + pageCount +
                ", contentList=" + contentList +
                ", nextPage=" + nextPage +
                ", backPage=" + backPage +
                ", totals=" + totals +
                '}';
    }

    public Integer getNpage() {
        return npage;
    }

    public void setNpage(Integer npage) {
        this.npage = npage;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public List<T> getContentList() {
        return contentList;
    }

    public void setContentList(List<T> contentList) {
        this.contentList = contentList;
    }

    public Integer getNextPage() {
        return nextPage;
    }

    public void setNextPage(Integer nextPage) {
        this.nextPage = nextPage;
    }

    public Integer getBackPage() {
        return backPage;
    }

    public void setBackPage(Integer backPage) {
        this.backPage = backPage;
    }

    public Long getTotals() {
        return totals;
    }

    public void setTotals(Long totals) {
        this.totals = totals;
    }
}
